package com.futu.attraction.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TemperatureAlert {
    private String sensorId;        // 传感器ID
    private double temperature;     // 温度值
    private Date timestamp; // 时间戳
    private String message;// 警报消息
    private boolean alert;  // 是否告警

    public TemperatureAlert(String sensorId, double temperature, Date timestamp, String message) {
        this.sensorId = sensorId;
        this.temperature = temperature;
        this.timestamp = timestamp;
        this.message = message;
    }
}
